<?php
class NPhpEngine extends NObject {
function __construct($args){}


function setTemplate($template){
	$this->_template=$template;
}
function getTemplate(){
	return $this->_template;
}




function render($template=''){
	//if (!file_exists($this->getTemplate())) {NError::raiseError(0,"no template  ".$this->getTemplate()." at ".__FILE__." line ".__LINE__);exit;}
	if (!file_exists($template)) {NError::raiseError(0,"no template  ".$this->getTemplate()." at ".__FILE__." line ".__LINE__);exit;}
	ob_start();
	include($template);
	$tpl = ob_get_contents();
	ob_end_clean();
	return  $tpl;
	
}
}
?>